package com.corpgovernment.permission.service;

import com.corpgovernment.common.enums.ResourceEnum;
import com.corpgovernment.permission.controller.RoleRest;
import com.corpgovernment.permission.entity.db.MbRoleResource;

import java.util.List;

/**
 * @author ：xks
 * @date ：Created in 2022/7/19 19:29
 * @description：
 * @modified By：
 * @version: $
 */
public interface MbRoleResourceService {

    List<MbRoleResource> findByRoleId(Long roleId);

    List<Long> findRoleIdByOrgId(Long orgId);

    void addOrUpdateInfo(Long roleId, List<Long> orgIdList, ResourceEnum resource);

    void addOneResource(Long roleId, Long resourceId, String orgId, String orgType, Integer type);

    public void delRoleOrg(Long roleId, List<Long> orgIdList, Integer type);

    void addOrUpdatePermissionInfo(Long id, List<Long> orElse);

    void roleDataProcess(RoleRest.RoleInfo request);
}
